package com.atguigu.gmall.service;

import com.atguigu.gmall.bean.manage.PmsSkuInfo;

import java.math.BigDecimal;
import java.util.List;

public interface SkuService {

    /**
     * sku
     * @param pmsSkuInfo
     * @return
     */
    void saveSkuInfo(PmsSkuInfo pmsSkuInfo);

    /**
     * 通过skuId查询PmsSkuInfo
     * @param skuId
     * @param ip
     * @return
     */
    PmsSkuInfo getSkuById(String skuId,String ip);

    /**
     * 根据商品id查询销售属性值
     * @param productId
     * @return
     */
    List<PmsSkuInfo> getSkuSaleAttrValueListBySpu(String productId);

    List<PmsSkuInfo> getAllSku(String catalog3Id);

    boolean checkPrice(String productSkuId, BigDecimal productPrice);
}
